<?php
include("functions.php");


$start_id = $_GET["start"];
?>









<HTML>
<HEAD>
    <TITLE>Word Rebel</TITLE>


<link rel="stylesheet" type="text/css" href="default.css">
<script language="JavaScript" src="javascript_functions.js"></script>

<BODY bgcolor="999966">




<TABLE BORDER="0" CELLPADDING=0 CELLSPACING=0 width="683" align="center">


<TR><TD valign="top" colspan="3"><img src="images/title-gawdi.gif" border=0 width="683" height="71"></TD></TR>



<TR><TD valign="top" colspan="3">

<P><BR>
<!-- MENU -->


<? print_main_menu(); ?>


</TD></TR>






<TR><TD valign="top" >



<!-- LEFT COL -->








<TABLE BORDER="0" CELLPADDING=0 CELLSPACING=0 width="464" >

<TR>
<TD colspan="3"><img src="images/page_top.gif" border=0 width="464" height="27"></TD></TR>

<TR>
<TD background="images/page_left.gif" width="23"><img src="images/space.gif" border=0 width="17" height="1"></TD>

<TD bgcolor="CCCC99" style="word-wrap:break-word;" width="400">
<img src="images/space.gif" border="0" width="428" height="1"><BR>


<?

$rows = get_number_of_rows("gaw");

$page_size = 30; //number of words that will display on a page

$number_of_pages = ceil($rows/$page_size);
//echo "number of pages: $number_of_pages";

$current_page = round($start_id/$page_size) + 1;


echo "<p class=textdark>there are $rows slangs for your viewing pleasure...</p>";


//echo "<p class=textdark>pages: ";
$s=1;
for ($i=1; $i <= $number_of_pages; $i++)
{
	$f = rand(1,2);//randomizing burmese and english for page num
	$c = "light";
	$size = 20;
	if($f==1)
	{
		$c="lightb";
		$size = 40;
	}
	if($i == $current_page)
	{
		echo "<a class= $c style=\"font-size: $size;\" href=browse.php?start=$s>$i</a>";
	}
	else
	{
		echo "<a class= $c href=browse.php?start=$s>$i</a>";
	}
	echo "           ";
	
	$s=$s+$page_size;

}
//echo "</p> ";


echo "<p>";
browse_printer($start_id,$page_size);
echo "</p>";

echo "<br><br>";
$next = $start_id + $page_size ;
$previous = $start_id - $page_size;
$sign = ">>";
$back_sign = "<<";

//echo $current_page;
if($current_page > 1 )
{
	echo "<a class=light href=browse.php?start=$previous>$back_sign</a>";
}
if($current_page > 1 && $current_page < $number_of_pages)
{
	echo "<a class=light href=#>-</a>";
}
if($current_page < $number_of_pages)
{

echo "<a class=light href=browse.php?start=$next>$sign</a>";
}
?>


</TD>


<TD background="images/page_right.gif" width="19"><img src="images/space.gif" border=0 width="16" height="1">





</TD>




</TR>





<TR>
<TD colspan="3"><img src="images/page_bott.gif" border=0 width="464" height="22"></TD></TR>


</TABLE>





<!-- END LEFT COL -->






</td>

<td><img src="images/space.gif" border=0 width="11" height="1"></td>





<TD valign=top>





<!-- START RIGHT COLUMN TOP -->





<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 width="208">

<TR>
<TD colspan="3"><img src="images/x_top.gif" border=0 width="208" height="175"></TD></TR>

<TR>
<TD background="images/star_left.gif" width="17"><img src="images/space.gif" border=0 width="17" height="1"></TD>

<TD bgcolor="CC3300">
<img src="images/space.gif" border=0 width="176" height="1"><BR>
<?
print_search_box("bglish");

?>



</TD>

<TD background="images/star_right.gif" width="17"><img src="images/space.gif" border=0 width="17" height="1"></TD>

</TR>


<TR>
<TD colspan="3"><img src="images/star_bott.gif" border=0 width="208" height="22"></TD></TR>


</TABLE>


<!-- END RIGHT COLUMN TOP -->











</td></tr>






<tr><td colspan="3" align=center>


<P><BR><!-- Copyright -->

<p class="textlight">gollystarz &copy; 2006</p>
<P><BR>



</td></tr>




</table>








<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-1322223-1";
urchinTracker();
</script>
</BODY>
</HTML>
